package com.ymttest.common.enums;

/**
 * 咨询客服类型
 * @author wuwen
 *
 */
public enum CallTypeEnum {

	
	/**
	 * 0 表示普通的客服
	 */
	ordinaryCS(0),

	/**
	 *  1表示AM客服
	 */
	AMCS(2);

	private int intValue;
	private static java.util.HashMap<Integer, CallTypeEnum> mappings;

	private synchronized static java.util.HashMap<Integer, CallTypeEnum> getMappings() {
		if (mappings == null) {
			mappings = new java.util.HashMap<Integer, CallTypeEnum>();
		}
		return mappings;
	}

	private CallTypeEnum(int value) {
		intValue = value;
		CallTypeEnum.getMappings().put(value, this);
	}

	public int getValue() {
		return intValue;
	}

	public static CallTypeEnum forValue(int value) {
		return getMappings().get(value);
	}
}
